import vue from 'vue'
import VueRouter from 'vue-router'
vue.use(VueRouter)
import login from '../components/login'
import register from '../components/regsiter'
import main from '../components/main'
import report from '../components/content/report'
import query from '../components/content/query'





export default new VueRouter({
    routes: [
        {
            path: "/",
            redirect: '/login'

        },
        {
            path: "/login",
            name:'index',
            component: login,
        },
        {
            path: "/register",
            component: register,
        },
        {
            path: "/index",
            component: main,
            children:[
                {
                    path: "/",

                    redirect:'/report'

                },
                {
                    path: "/report",

                    component:  report 

                },
                {
                    path: "/query",

                    component:query 

                },
            ]

        },
       
    ]

})